<table cellpadding="5" cellspacing="10">
      <th align="center">Please enter all fields. </th>
      <tr>
        <td align="right"><%= f.label :time_range, 'Time Range :', :class => 'form_text_field_label'%></td>
        <td><%= f.text_field :time_range, :class => 'form_text_field' %></td>
      </tr>
      <tr>
        <td align="right"><%= f.label :days, 'Days (1 = Mon) : '.html_safe, :class=> 'form_text_field_label' %></td>
        <td><%= f.text_field :days, :class=>'form_text_field' %></td>
      </tr>
      <tr>
        <td align="right"><%= label_tag :months, 'Months (1 = Jan) : ', :class=> 'form_text_field_label' %></td>
        <td><%= f.text_field :months, :class => 'form_text_field' %></td>
      </tr>
      <tr>
        <td align="right"><%= label_tag :location, 'Location :',:class=> 'form_text_field_label' %></td>

        <td><%= f.collection_select :location, @locations, :id, :name, :prompt => true -%>
        </td>
      </tr>
    <tr>
      <td align="right" class="form_text_field_label_fieldset" >
        Users:
      </td>
      <td>
        <fieldset id="objective-users" style="border-style: none;">
          <ol>
            <%= f.fields_for :protocols do | protocol| %>
               <%= render 'protocol_fields', f:protocol, f_parent: f %>
            <% end -%>
          </ol>
          <%=  link_to_add_association 'add user', f, :protocols,
                                         'data-association-insertion-node' => "#objective-users ol",
                                         'data-association-insertion-method' => "append",
                                         :wrap_object => Proc.new {|protocol| protocol.build_user; protocol } %>


        </fieldset>
      </td>
    </tr>
</table>
